package org.dromara.merchants.domain.vo;

import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;
import org.dromara.merchants.domain.TaCategory;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 公共分类视图对象 ta_category
 *
 * @author xiyin321
 * @date 2024-07-02
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = TaCategory.class)
public class TaCategoryVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 公共分类编号
     */
    @ExcelProperty(value = "公共分类编号")
    private Long categoryId;

    /**
     * 公共分类名
     */
    @ExcelProperty(value = "公共分类名")
    private String categoryName;

    /**
     * 公共分类图标
     */
    @ExcelProperty(value = "公共分类图标")

    private Long icon;

    @Translation(type = TransConstant.OSS_ID_TO_URL)
    private Long iconUrl;

    /**
     * 排序
     */
    @ExcelProperty(value = "排序")
    private Long sort;

    public void setIcon(Long icon) {
        this.icon = icon;
        this.iconUrl = icon;
    }
}
